package com.lzz.websocket.pojo;



//消息实体
public class Message {
    //发送者id
    String userId;

    //接受者id
    //可根据toUserId是否为null判断是群发还是单发
    String toUserId;

    //消息内容
    String contentText;

    @Override
    public String toString() {
        return "Message{" +
                "userId='" + userId + '\'' +
                ", toUserId='" + toUserId + '\'' +
                ", contentText='" + contentText + '\'' +
                '}';
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public String getContentText() {
        return contentText;
    }

    public void setContentText(String contentText) {
        this.contentText = contentText;
    }
}
